package com.ff.xyh.common.entity.post;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 参与用户表
 * </p>
 *
 * @author ff
 * @since 2022-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PostJoiner对象", description="参与用户表")
public class PostJoiner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属帖子")
    private String postId;

    @ApiModelProperty(value = "帖子类型")
    private Integer postType;

    @ApiModelProperty(value = "参与用户 对应 front_user 表")
    private String userId;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "参与用户昵称")
    @TableField(exist = false)
    private String userNickname;

    @ApiModelProperty(value = "参与用户头像")
    @TableField(exist = false)
    private String userAvatar;

    @ApiModelProperty(value = "参与者简述")
    private String joinerState;

    @ApiModelProperty(value = "参与状态")
    private Integer joinerStatus;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "删帖时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
